﻿using SaCoderZ_POS.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

namespace SaCoderZ_POS_STORE
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();

            //this was just a test to see if i could create an item
            //CreateItem();

        }

  

        private void CreateItem() {

            Item newPosItem = new Item();

            newPosItem.ItemID = "1";     //primary key UNIQUE
            newPosItem.ItemName = "1";
            newPosItem.ItemDescription= "1";
            newPosItem.ItemBarCode= "1";
            newPosItem.ItemMake = "1";
            newPosItem.ItemModel= "1";
            newPosItem.ItemCode = "1";
            newPosItem. ItemSerialNo = "1";
        
        }

        private void btnMakeItem_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(pageMakeItem));
        }


    }
}
